#ifndef _APP_RESET_H_
#define _APP_RESET_H_

/*******************************************************************
 *
 * Copyright (C), 2021-2022, Letstrong, All rights reserved.
 *
 * Author      : 
 * Create Time : 2020-12-17
 * Version     : v0.1
 * Description : 
 *******************************************************************/
 
/*----------------------------Head file----------------------------*/
#include "stdint.h"
#include "stdbool.h"

/*----------------------------macro file---------------------------*/
#define SHIP_MODE_VALID_ID			0xAA01
#define SHIP_MODE_WAKE_ID			0xAA02
#define SOFT_RESET_VALID_ID			0xECB5

/*----------------------------type define--------------------------*/
typedef enum {
	RST_REASON_NULL = 0,
	RST_REASON_SOFT_RST,
	RST_REASON_SHIP_MODE_ENTER,
	RST_REASON_SHIP_MODE_WAKE,
} sys_reset_t;

/*----------------------------var define---------------------------*/

/*-------------------------func declaration------------------------*/
extern void app_system_reset(void);
extern void app_ship_mode_reset(void);
extern uint8_t app_system_reset_reason_get(void);
extern void app_system_reset_data_init(void);

/*-----------------------------------------------------------------*/


#endif


